
pkgname=libssh
pkgver=0.7.5
pkgrel=1
pkgdesc="Library for accessing ssh client services through C libraries"
url="https://www.libssh.org/"
license=('LGPL')
arch=('x86_64')
depends=('openssl')
makedepends=('cmake' 'doxygen')
source=("https://red.libssh.org/attachments/download/218/${pkgname}-${pkgver}.tar.xz")
md5sums=('d3fc864208bf607ad87cdee836894feb')

build() {
  mkdir -p build
  cd build
  
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package(){
  cd build
  
  make DESTDIR=${pkgdir} install
}
